
use crate::models::menu::{Menu, MenuVo};
use rbatis::CRUDTable;
use rbatis::DateTimeNative;

use serde::{Serialize, Deserialize};

use crate::models::role::Role;

#[derive(Debug, CRUDTable, Serialize, Deserialize, Clone, PartialEq)]
pub struct RoleMenu {
    pub role_id: Option<u64>,
    pub menu_id: Option<u64>,
    pub del_flag: Option<u64>,
    pub state: Option<u64>,
    pub org_id: Option<u64>,
    pub company_id: Option<u64>,
    pub create_time: Option<DateTimeNative>,

}

#[derive(Debug, CRUDTable, Serialize, Deserialize, Clone, PartialEq)]
pub struct RoleMenuVo {
    pub roles: Vec<Role>,
    pub menus: Vec<Menu>,
}
